Christian Hergert [Thu, 19 Nov 2020 03:58:09 +0000 (19:58 -0800)]
types: fix various use of volatile in type registration
The use of volatile was incorrect in GLib and has been that way for
a long time. Recently however that has changed, and this makes GTK
follow suit to avoid using volatile in the type registration.
See also: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
Combined with the above merge request for GLib, this fixes a large
number of compilation warnings when using Clang.
Matthias Clasen [Wed, 18 Nov 2020 14:23:56 +0000 (14:23 +0000)]
Merge branch 'wayland-minimize' into 'master'
wayland: Implement minimization
Closes #2688
See merge request GNOME/gtk!2861
Matthias Clasen [Wed, 18 Nov 2020 12:19:07 +0000 (12:19 +0000)]
Merge branch 'constraint-editor-work' into 'master'
Constraint editor work
See merge request GNOME/gtk!2863
Matthias Clasen [Wed, 18 Nov 2020 04:15:51 +0000 (23:15 -0500)]
constraint-editor: Fix creating constant constraints
We were not making the button sensitive in the case
of a constant constraint, and we were not properly
creating constant constraints either.
Matthias Clasen [Wed, 18 Nov 2020 04:14:29 +0000 (23:14 -0500)]
constraint-editor: Fix saving of constraints
g_file_replace_contents take a gsize, so passing -1
for string length does not work here.
Matthias Clasen [Wed, 18 Nov 2020 04:11:16 +0000 (23:11 -0500)]
constraintlayout: Fix parsing of constant constraints
We were inadvertently turning constant constraints into
constraints against super, due to confusion between target
and source attribute.
Matthias Clasen [Wed, 18 Nov 2020 03:04:01 +0000 (03:04 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'
macos: fix rendering artifacts with hover transitions
See merge request GNOME/gtk!2862
Matthias Clasen [Wed, 18 Nov 2020 02:52:15 +0000 (21:52 -0500)]
constraint-editor: Improve display of constraints
No need to go for ALGOL60 style operators when we
have Unicode.
Christian Hergert [Wed, 18 Nov 2020 02:20:55 +0000 (18:20 -0800)]
macos: fix rendering artifacts with hover transitions
Using an image surface seems to fix some rendering artifacts when
performing cross-fade CSS transitions.
Matthias Clasen [Wed, 18 Nov 2020 00:57:56 +0000 (19:57 -0500)]
wayland: Implement minimization
Use the set_minimized method of the xdg_toplevel
interface to implement minimization as well as possible.
It is not possible, since there is no corresponding
state that we could use to update our surface state,
but in practice, it works well enough.
Fixes: #2688
Matthias Clasen [Wed, 18 Nov 2020 00:13:17 +0000 (00:13 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'
gdk/wayland: Update to gtk_shell1 version 3
See merge request GNOME/gtk!2860
Carlos Garnacho [Tue, 17 Nov 2020 23:38:15 +0000 (00:38 +0100)]
gdk/wayland: Update to gtk_shell1 version 3
Bring in line with gtk3, in terms of startup notification and
activation support.
Matthias Clasen [Tue, 17 Nov 2020 22:49:05 +0000 (22:49 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'
node-editor: fix length of text during save
See merge request GNOME/gtk!2859
Matthias Clasen [Tue, 17 Nov 2020 22:46:43 +0000 (22:46 +0000)]
Merge branch 'fix-doc-packtype' into 'master'
doc: Adapt GtkPackType documentation to GTK4 changes
See merge request GNOME/gtk!2858
Christian Hergert [Tue, 17 Nov 2020 22:34:11 +0000 (14:34 -0800)]
node-editor: fix length of text during save
The length parameter for g_file_replace_contents() is a gsize, so -1 is
unsuitable here. Just use strlen() directly.
Matthias Clasen [Tue, 17 Nov 2020 19:25:05 +0000 (19:25 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3278
See merge request GNOME/gtk!2856
Matthias Clasen [Tue, 17 Nov 2020 19:24:47 +0000 (19:24 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'
inspector: handle differences in DPI between backends
See merge request GNOME/gtk!2857
vanadiae [Tue, 17 Nov 2020 19:14:51 +0000 (20:14 +0100)]
doc: Adapt GtkPackType documentation to GTK4 changes
Since GTK4, the functions that used the GtkPackType enumeration,
`gtk_box_pack_{start,end}`, were replaced by `gtk_box_{append,prepend}`,
hence this enumeration isn't used anymore by any function within the
GtkBox type, and the child packing properties were also removed for GTK4.
So this commit adapts the documentation accordingly.
Benjamin Otte [Tue, 17 Nov 2020 19:08:01 +0000 (19:08 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
Wip/otte/for master
See merge request GNOME/gtk!2855
Christian Hergert [Tue, 17 Nov 2020 18:45:25 +0000 (10:45 -0800)]
inspector: handle differences in DPI between backends
This fixes an issue on macOS where the text gets much larger once opening
the inspector.
Matthias Clasen [Tue, 17 Nov 2020 18:33:59 +0000 (13:33 -0500)]
inspector: Limit the width of readonly properties
For readonly properties, we show the serialized value
in a label. If we don't take precautions, this can cause
our window to grow extremely wide, and break things.
So, ellipsize things at a reasonable size.
Fixes: #3278
Benjamin Otte [Wed, 11 Nov 2020 00:34:37 +0000 (01:34 +0100)]
snapshot: Add cleanup function to snapshot state
Otherwise we're leaking data in error cases.
Benjamin Otte [Mon, 16 Nov 2020 23:59:36 +0000 (00:59 +0100)]
rendernode: Rename all gsk_render_node_peek_*() functions
Those are getters, they should be gsk_render_node_get_*() functions.
Benjamin Otte [Sun, 8 Nov 2020 14:42:11 +0000 (15:42 +0100)]
tests: Fix for new tranfer behavior of constructors
We were still unreffing a listmodel where the reference wasn't ours
anymore.
Benjamin Otte [Tue, 17 Nov 2020 18:03:18 +0000 (19:03 +0100)]
testsuite: Make defaultvalue test always get the property
Make the test not skip properties completely, just skip checking the
property.
This caught the last 2 commits.
Benjamin Otte [Tue, 17 Nov 2020 18:02:26 +0000 (19:02 +0100)]
textbuffer: Remove unused properties
The getters and setters were removed in
f53848c3606a9c46bcb3a0e568f36e573bdf84da but the pspecs were forgotten.
Benjamin Otte [Tue, 17 Nov 2020 18:01:13 +0000 (19:01 +0100)]
shortcut: Actions are objects
Emmanuele Bassi [Tue, 17 Nov 2020 17:58:14 +0000 (17:58 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'
macos: bring forward quartz search engine updates
See merge request GNOME/gtk!2854
Emmanuele Bassi [Tue, 17 Nov 2020 17:40:13 +0000 (17:40 +0000)]
Merge branch 'ebassi/inout-args' into 'master'
Remove pointless inout arguments
See merge request GNOME/gtk!2853
Christian Hergert [Tue, 17 Nov 2020 17:36:01 +0000 (09:36 -0800)]
macos: bring forward quartz search engine updates
These were not cherry picked after GTK branched for 4 development.
Matthias Clasen [Tue, 17 Nov 2020 17:21:29 +0000 (12:21 -0500)]
docs: Add details about plain builds
Mention that build type 'plain' puts the responsibility
for debug features into the hands of the builder.
Related: !2831
Emmanuele Bassi [Tue, 17 Nov 2020 14:40:52 +0000 (14:40 +0000)]
Remove pointless inout arguments
GtkTreeView.get_tooltip_context() takes an inout X and Y coordinates,
but the "out" side is a side effect: the conversion from widget-relative
to bin window-relative coordinates is not documented, and can be done
using public API, if needed.
GtkIconView.get_tooltip_context() follows the same pattern, and takes
two inout arguments for the coordinates, but it does not change them any
more, after GtkIconView's bin window was dropped in commit
8dc5e13e.
There's really no point in having these `inout` arguments, and while
GtkTreeView and GtkIconView are certainly de-emphasised in GTK4, and we
nudge developers to move to the new list views, we should take advantage
of the API break to remove warts.
Emmanuele Bassi [Tue, 17 Nov 2020 16:04:03 +0000 (16:04 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Introspection fixes
Closes #3281
See merge request GNOME/gtk!2852
Jakub Steiner [Tue, 17 Nov 2020 15:48:49 +0000 (16:48 +0100)]
Revert "Adwaita: avoid clipping menu/popover shadow"
There are big side effects to adding padding around all menus and popovers.
https://gitlab.gnome.org/GNOME/gtk/-/issues/1987#note_963889
This reverts commit
d266bd62deaa5752ae79fe055696a9e1e411de2f.
Emmanuele Bassi [Tue, 17 Nov 2020 14:17:26 +0000 (14:17 +0000)]
Add type annotations for GtkShortcutAction types
The constructors and singleton getters need proper annotations for their
return type, given that we return a base type.
Matthias Clasen [Tue, 17 Nov 2020 14:12:23 +0000 (14:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2851
Emmanuele Bassi [Tue, 17 Nov 2020 14:07:11 +0000 (14:07 +0000)]
Annotate GdkTimeCoord's array field
We need to resolve the array length manually, because g-ir-scanner
cannot turn an enumeration member into a constant size.
Emmanuele Bassi [Tue, 17 Nov 2020 13:54:22 +0000 (13:54 +0000)]
Annotate the return type for GtkTreeExpander.get_item()
We use gpointer for C convenience, but the returned value is really a
GObject.
Emmanuele Bassi [Tue, 17 Nov 2020 13:52:15 +0000 (13:52 +0000)]
Annotate out argument for gdk_popup_layout_get_offset()
Emmanuele Bassi [Tue, 17 Nov 2020 13:48:07 +0000 (13:48 +0000)]
Annotate the gsk_border_node_peek_widths() return value
We return a fixed sized C array of floats.
Matthias Clasen [Tue, 17 Nov 2020 12:33:46 +0000 (07:33 -0500)]
widget-factory: Remove an unused size group
This was left behind when
361407201b88c3aae2ee removed
the unused popover that this size group applied to.
Matthias Clasen [Tue, 17 Nov 2020 03:58:53 +0000 (22:58 -0500)]
docs: Fix the links for keybinding signals
GtkBindingSignal does not exist anymore, so link to
GtkSignalAction for an explanation of keybinding signals.
Matthias Clasen [Tue, 17 Nov 2020 03:46:17 +0000 (22:46 -0500)]
popover: Document signals
Matthias Clasen [Tue, 17 Nov 2020 03:45:59 +0000 (22:45 -0500)]
menubutton: Fix a gtk-doc complaint
Matthias Clasen [Tue, 17 Nov 2020 03:39:13 +0000 (22:39 -0500)]
gtk: Fix a doc oversight
Matthias Clasen [Tue, 17 Nov 2020 03:36:11 +0000 (22:36 -0500)]
gsk: Fix a doc oversight
Matthias Clasen [Tue, 17 Nov 2020 12:31:36 +0000 (12:31 +0000)]
Merge branch 'fix-gi-warning' into 'master'
Fix a warning caused by difference between prototype and definition
See merge request GNOME/gtk!2849
Matthias Clasen [Tue, 17 Nov 2020 12:22:29 +0000 (12:22 +0000)]
Merge branch 'wip/exalm/caption' into 'master'
widget-factory: Fix caption style class name
See merge request GNOME/gtk!2850
Alexander Mikhaylenko [Tue, 17 Nov 2020 08:16:47 +0000 (13:16 +0500)]
widget-factory: Fix caption style class name
It's lowercase.
Qiu Wenbo [Tue, 17 Nov 2020 06:47:28 +0000 (14:47 +0800)]
Fix a warning caused by difference between prototype and definition
This commit fix the warning:
../gdk/wayland/gdkdisplay-wayland.c:1079: Warning: GdkWayland: gdk_wayland_display_set_cursor_theme: unknown parameter 'name' in documentation comment, should be 'theme'
Matthias Clasen [Tue, 17 Nov 2020 05:36:15 +0000 (05:36 +0000)]
Merge branch 'gsk-binding-api' into 'master'
gsk: Avoid using gtk css types in public api
Closes #2454
See merge request GNOME/gtk!2848
Matthias Clasen [Tue, 17 Nov 2020 03:21:27 +0000 (22:21 -0500)]
gsk: Avoid using gtk css types in public api
Using GtkCssSection in public headers here may be
ok from the C perspective, since it all ends up in
the same library anyway. But it causes circular
dependency problems for our gir files that are still
split by namespace.
To avoid this problem, copy the GtkCssLocation struct
struct as GskParseLocation, and pass take two of them
instead of a GtkCssSection in the error callback.
Update all users.
Fixes: #2454
Matthias Clasen [Tue, 17 Nov 2020 03:11:13 +0000 (03:11 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
popover: Fix submenu navigation
Closes #3301
See merge request GNOME/gtk!2847
Matthias Clasen [Tue, 17 Nov 2020 02:27:15 +0000 (21:27 -0500)]
popover: Fix submenu navigation
In commit
024d832d943b2abf4f0d, we introduced a
cascade-popdown property that makes closing a submenu
propagate up and close its parent menus. This is the
behavior we want when a menuitem in the submen is
activated.
What we overlooked is that we still need to be able to
close a submenu during navigation, before opening another
one. And in this case, propagating the closing is breaking
things. Fix this by adding a private close_submenu api
to GtkPopoverMenu that avoids the propagation.
Fixes: #3301
Benjamin Otte [Mon, 16 Nov 2020 19:16:53 +0000 (20:16 +0100)]
build: Include GSK types in gtk_test_register_all_type()
Matthias Clasen [Tue, 17 Nov 2020 01:07:34 +0000 (01:07 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2846
Emmanuele Bassi [Mon, 16 Nov 2020 23:06:55 +0000 (23:06 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Ebassi/for master
See merge request GNOME/gtk!2840
Matthias Clasen [Mon, 16 Nov 2020 20:22:12 +0000 (15:22 -0500)]
widget-factory: Remove an unused popover
We are no longer using the hand-rolled variant of that
popover on page 3, so drop it from the ui file.
Matthias Clasen [Mon, 16 Nov 2020 20:16:10 +0000 (20:16 +0000)]
Merge branch 'wip/exalm/button' into 'master'
Allow pressing multiple buttons at once on touch
See merge request GNOME/gtk!2813
Jakub Steiner [Mon, 16 Nov 2020 19:50:08 +0000 (19:50 +0000)]
Merge branch 'wip/jimmac/popover-menu-submenus' into 'master'
Adwaita: fix up submenus again
See merge request GNOME/gtk!2845
Matthias Clasen [Mon, 16 Nov 2020 19:20:19 +0000 (19:20 +0000)]
Merge branch 'wip/chergert/for-master' into 'master'
gsk: use glFrameBufferTexture2D and release texture
See merge request GNOME/gtk!2842
Jakub Steiner [Mon, 16 Nov 2020 18:55:30 +0000 (18:55 +0000)]
Merge branch 'wip/jimmac/circular-button-focus' into 'master'
Adwaita: circular button focus
Closes #3368
See merge request GNOME/gtk!2844
Jakub Steiner [Mon, 16 Nov 2020 18:48:11 +0000 (19:48 +0100)]
Adwaita: fix up submenus again
- move menubar section under more generic popover.menu
rather than resort to specificity dir(ltr) hacks
Jakub Steiner [Mon, 16 Nov 2020 18:04:07 +0000 (19:04 +0100)]
Adwaita: circular button focus
- have the same focus look like the other items
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3368
Matthias Clasen [Mon, 16 Nov 2020 17:50:56 +0000 (17:50 +0000)]
Merge branch 'wip/jimmac/spinbutton-spacing' into 'master'
Adwaita: spinbutton spacing
Closes #3370
See merge request GNOME/gtk!2841
Emmanuele Bassi [Mon, 16 Nov 2020 17:28:22 +0000 (17:28 +0000)]
a11y: Ensure valid object paths in the fallback code
When falling back to using the program name to create a unique base path
for the objects on the accessibility bus we need to ensure that the name
is a valid DBus object path.
Christian Hergert [Mon, 16 Nov 2020 17:26:07 +0000 (09:26 -0800)]
gsk: use glFrameBufferTexture2D and release texture
glFrameBufferTexture maps to all faces of a cube and that is not needed
here. Additionally, texture_id is not deleted after we use the additional
flipped texture, but should be.
Jakub Steiner [Mon, 16 Nov 2020 17:22:17 +0000 (18:22 +0100)]
Adwaita: spinbutton spacing
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3370
Emmanuele Bassi [Mon, 16 Nov 2020 15:23:37 +0000 (15:23 +0000)]
a11y: Implement atspi.Cache
The AT-SPI cache interface is used to quickly populate the accessible
objects tree.
The tricky bit is ensuring that we emit change notifications on the
cache only when the cache is available, which means waiting until the
root is asynchronously registered.
Emmanuele Bassi [Mon, 16 Nov 2020 15:22:33 +0000 (15:22 +0000)]
a11y: Update the Cache interface introspection
The type for cached items is, unsurprisingly, wrong when compared to the
implementation inside atk-spi2-atk.
Emmanuele Bassi [Mon, 16 Nov 2020 15:21:58 +0000 (15:21 +0000)]
a11y: Add getters for GtkAtSpiContext
We are going to use them in order to implement atspi.Cache.
Emmanuele Bassi [Mon, 16 Nov 2020 14:25:02 +0000 (14:25 +0000)]
a11y: Use the tab widget to label the notebook stack page
Emmanuele Bassi [Mon, 16 Nov 2020 14:17:28 +0000 (14:17 +0000)]
a11y: Compute the base path in the root object
The root path is shared by all AtSpiContext instances, so we should
compute it once, instead of every time we instantiate a new context.
This allows us to defer the path creation at realization time and ensure
that we have a registered application.
Emmanuele Bassi [Thu, 12 Nov 2020 23:26:03 +0000 (23:26 +0000)]
a11y: Resync the AT-SPI XML
Mostly just changes in the annotations coming from at-spi2-core, but
it's good to try and keep the XML in sync.
Jakub Steiner [Mon, 16 Nov 2020 14:50:16 +0000 (14:50 +0000)]
Merge branch 'wip/jimmac/circular-button-padding' into 'master'
Adwaita: circular buttons
See merge request GNOME/gtk!2838
Matthias Clasen [Mon, 16 Nov 2020 14:29:10 +0000 (09:29 -0500)]
docs: Mention cairo-gobject as build requires
Using cairo from a system dependency and cairo-gobject
as subproject is problematic and left me stuck on a
hard-to-understand build error.
Jakub Steiner [Mon, 16 Nov 2020 14:21:46 +0000 (15:21 +0100)]
Adwaita: circular buttons
- the vertical padding was thown off with the chin/forehead of menus removed
Jakub Steiner [Mon, 16 Nov 2020 14:10:21 +0000 (14:10 +0000)]
Merge branch 'wip/jimmac/menu-clipped-shadow' into 'master'
Wip/jimmac/menu clipped shadow
Closes #1987
See merge request GNOME/gtk!2837
Jakub Steiner [Mon, 16 Nov 2020 13:20:24 +0000 (14:20 +0100)]
Adwaita: avoid clipping menu/popover shadow
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/1987
Matthias Clasen [Mon, 16 Nov 2020 12:43:06 +0000 (07:43 -0500)]
gsk: Fix some docs oversights
These apis have been renamed a few times, and the docs
haven't kept up.
Matthias Clasen [Mon, 16 Nov 2020 12:40:05 +0000 (07:40 -0500)]
gdk: Docs cosmetics
Add a few missing parameters in doc comments.
Matthias Clasen [Mon, 16 Nov 2020 12:37:33 +0000 (07:37 -0500)]
docs: Fix a typo
Matthias Clasen [Mon, 16 Nov 2020 12:35:41 +0000 (07:35 -0500)]
docs: Remove gtk_render_insertion_cursor
This function was removed in
2bcef7f03058dac7cbac.
Jakub Steiner [Mon, 16 Nov 2020 12:31:27 +0000 (13:31 +0100)]
Adwaita: remove chin on menus
- clipping a rounded corner seems to be working fine for first and last item.
Addresses https://gitlab.gnome.org/GNOME/gtk/-/issues/3366
Jakub Steiner [Mon, 16 Nov 2020 09:34:36 +0000 (09:34 +0000)]
Merge branch 'wip/jimmac/subtle-sidebar' into 'master'
Adwaita: navigation sidebar color changes
Closes #3362
See merge request GNOME/gtk!2836
Jakub Steiner [Fri, 13 Nov 2020 17:24:10 +0000 (18:24 +0100)]
Adwaita: navigation sidebar color changes
- use more subtle selected state grey
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3362
Matthias Clasen [Mon, 16 Nov 2020 04:29:10 +0000 (04:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2835
Matthias Clasen [Mon, 16 Nov 2020 04:03:30 +0000 (23:03 -0500)]
gtk-demo: Plug a memory leak
The Characters demo was leaking its columns.
Matthias Clasen [Mon, 16 Nov 2020 02:52:07 +0000 (21:52 -0500)]
modelbutton: Fix keynav for check and radio
The expected behavior when activating check or radio
menuitems via keynav is that Space toggles the item
but keeps the menu open, while Return toggles the
item and closes the menu.
Matthias Clasen [Sun, 15 Nov 2020 17:37:47 +0000 (17:37 +0000)]
Merge branch 'fix-tooltip-trigger' into 'master'
Fix tooltip triggering
See merge request GNOME/gtk!2833
Matthias Clasen [Sun, 15 Nov 2020 14:34:25 +0000 (09:34 -0500)]
Fix tooltip triggering
Ever since
5b5d2665d373c35f, tooltips don't work properly,
since we get more motion events now, and those keep the
tooltips from appearing. This can be seen e.g. on the icon
in the password entry in widget-factory, or on the section
switcher buttons in the Emoji chooser.
Ignore synthetic motion events for the purposes of
determining whether the user moved the mouse.
Emmanuele Bassi [Sun, 15 Nov 2020 15:23:42 +0000 (15:23 +0000)]
Merge branch 'widget-no-a11y-crash' into 'master'
gtkwidget: fix crashes with GTK_A11Y=none
Closes #3333
See merge request GNOME/gtk!2834
Christoph Reiter [Sun, 15 Nov 2020 14:59:31 +0000 (15:59 +0100)]
gtkwidget: fix crashes with GTK_A11Y=none
at_context can be NULL in that case, so guard against it.
Fixes #3333
Matthias Clasen [Sun, 15 Nov 2020 13:45:42 +0000 (13:45 +0000)]
Merge branch 'button-fill-var-removal' into 'master'
Adwaita: Stop using $button_fill
Closes #3354
See merge request GNOME/gtk!2828
Matthias Clasen [Sun, 15 Nov 2020 13:37:44 +0000 (13:37 +0000)]
Merge branch 'parse-debug-env-vars-always' into 'master'
Always parse GTK/GDK/GSK_DEBUG env vars and make some entries available in non-debug mode
See merge request GNOME/gtk!2830
Christoph Reiter [Sun, 15 Nov 2020 12:36:35 +0000 (13:36 +0100)]
Revert "Update comment annotations of gtk_tree_model_iter_previous and gtk_tree_model_iter_next to state that the ITER parameter is modified."
This reverts commit
1340ff2bc279329dc16b8d823100fec46b2f11d8.
Same as with
53cd499621b5
Christoph Reiter [Sat, 14 Nov 2020 07:49:17 +0000 (08:49 +0100)]
Always parse GTK/GDK/GSK_DEBUG env vars and make some entries available in non-debug mode
Currently GTK can be built with G_ENABLE_DEBUG which enables various debug code and parsing
of those env vars, or without, which instead of parsing them prints a warning if they are set.
While building with G_ENABLE_DEBUG isn't strictly needed it's the only way to make GTK_DEBUG=interactive work,
which is a nice thing to have always.
This enables parsing of those env vars in any case and allows specific values being marked as also
available when not built with G_ENABLE_DEBUG (interactive for example). If not built with G_ENABLE_DEBUG
then all unavailable values will be marked as such in the help output and a note is added that
GTK needs to be built with G_ENABLE_DEBUG to use them, which should help discoverability.
Yuri Chornoivan [Sun, 15 Nov 2020 08:01:26 +0000 (08:01 +0000)]
Update Ukrainian translation
Matthias Clasen [Sat, 14 Nov 2020 14:41:01 +0000 (14:41 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'
gtk/main: Reset active state on grab broken only if implicit
See merge request GNOME/gtk!2832
Carlos Garnacho [Sat, 14 Nov 2020 09:48:04 +0000 (10:48 +0100)]
gtk/main: Reset active state on grab broken only if implicit
An implicit grab means some button is down, reset the active state
only in that case when we get a grab broken event.
Avoids active state accounting warnings when we do get active grabs
broken (e.g. after selecting a menu option).